package com.hqhy.like.stock.dao.persist.repository;

import com.hqhy.like.common.pojo.vo.PageData;
import com.hqhy.like.stock.pojo.entity.StockIn;
import com.hqhy.like.stock.pojo.param.StockSearchParam;
import com.hqhy.like.stock.pojo.vo.StockInListItemVO;

import java.util.List;

public interface IStockInRepository {
   int insert(StockIn stockIn);

   int deleteById(Long id);

   int updateById(StockIn stockIn);

    PageData<StockInListItemVO> list(Integer pageNum, Integer pageSize);

    StockInListItemVO selectStockInById(Long id);

    PageData<StockInListItemVO> listForSearch(StockSearchParam stockInSearchParam);

    List<StockInListItemVO> listStockInByIds(List<Long> ids);

    StockInListItemVO getStockInById(Long id);
}
